package com.itheima.consumer.dao;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA 2023.
 * Description:
 * User: homechen
 * Date: 2024-04-27
 * Time: 13:57
 */
@Component
public class DelayedMessageConsumer {
    @RabbitListener(queues = delayExchange.QUEUE_NAME)
    public void receiveDelayedMessage(String message){
        System.out.println("Recv Delayed Message：" + message);
    }
}
